package mul.Logic;

import java.util.TimerTask;

public class FreezeTimer extends TimerTask {
	
	private GameState gs;
	private int maxtime= 50;
	private int timeleft = maxtime;
	
	public FreezeTimer(GameState gs) {
		this.gs = gs;
	}
	
	public void run() {
		if(timeleft > 0)
			timeleft--;
		
		if(timeleft == 0) {
			gs.setNotFrozen();
		}
	}
	
}
